import request from "@/utils/request";

// 查询我的补考列表
export function listMyResitExam(query) {
  return request({
    url: "/myResitExam/list",
    method: "get",
    params: query,
  });
}

// 查询我的补考详细
export function getMyResitExam(resitId) {
  return request({
    url: "/myResitExam/" + resitId,
    method: "get",
  });
}

// 申请补考
export function applyResitExam(data) {
  return request({
    url: "/myResitExam/apply",
    method: "post",
    data: data,
  });
}

// 取消补考申请
export function cancelResitExam(resitId) {
  return request({
    url: "/myResitExam/cancel/" + resitId,
    method: "put",
  });
}
